package com.cjjd.c.bean.subscribe;

import com.cjjd.c.bean.BaseBean;

import java.io.Serializable;
import java.util.List;
import java.util.TreeMap;

/**
 * ----------------------------------
 * Created by xyd on 2017/12/20.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class ChangeOrderBean extends BaseBean {

    /*hotelName	String	酒店名称
    startDate	String	开始时间
    endDate	String	结束时间
    inDayNum	int	入驻天数
    roomTypeDesc	String	房型类型描述
    orderUuid	String	订单uuid
    orderId	String	订单编号
    roomTypeName	String	房型类型名称
    roomTypePrice	double	房型类型价格
    payStatusName	String	支付状态名称
    roomUuid	String	房型uuid	是
    picPth	String	房型图片地址	是
    roomName	String	房型名称	是
    area	double	面积	是
    appsCount	int	评论条数	是
    price	double	订单总价格	是
    dataList	List< HotelRoomTypeShowModel>	房型类型集合
    HotelRoomTypeShowModel	HotelRoomTypeShowModel房型类型对象model详情
    priceTypeUuid	String	房型类型uuid	是
    priceTypeName	String	房型类型名称	是
    tag	String	房型标签	是
    totalPrice	double	总价格	是
    priceTag	int	价格标签	是
    prices	TreeMap<String,Double>	每天的价格	是*/

    public String hotelUuid;
    public String hotelName;
    public String startDate;
    public String endDatee;
    public String inDayNum;
    public String roomTypeDesc;
    public String orderUuid;
    public String orderId;
    public String roomTypeName;
    public String roomTypePrice;
    public String payStatusName;
    public String roomUuid;
    public String picPth;
    public String roomName;
    public String area;
    public String appsCount;
    public String price;
    public List dataList;

    public class HotelRoomTypeShowModel implements Serializable {
        public String priceTypeUuid;
        public String priceTypeName;
        public String tag;
        public String totalPrice;
        public String priceTag;
        public TreeMap<String, Double> prices;
    }


    public String getStartDate() {
        if (startDate != null && startDate.length() > 10) {
            return startDate.substring(0, 10);
        }
        return startDate;
    }

    public String getEndDate() {
        if (endDatee != null && endDatee.length() > 10) {
            return endDatee.substring(0, 10);
        }
        return endDatee;
    }
}
